{% extends "panel/panel_base.html" %}
{% block extra_head %}

{% endblock %}
{% block panel_title%}Edit Photo Gallery{% endblock %}
{% block panel_content %}
{% if errors %}
	<div id="gen_error_message">
		Errors:
		<ul>
			{% if title_error %}<li>The title field is required.</li>{% endif %}
			{% if description_error %}<li>The description field is required.</li>{% endif %}				
		</ul>
	</div>
{% endif %}
{% if success %}
	<div id="gen_success">
		<ul>
			<li>Gallery Successfully Created</li>
			<li>We recommend you <a style="text-decoration:underline;" href="http://fblaconnection.com/panel/cloudpjff7/gallery/{{ugallery.id}}/add/image/">add some images</a> to it.</li>
		</ul>
	</div><br />
{% else %}
{% if delete %}

{% endif %}
<form action="" method="post" accept-charset="utf-8">
	<table width="500" border="0">
		<tr>
			<td align="right">Title: </td>
			<td><input type="text" name="title" value="{{ title }}" class="register_text" /></td>
		</tr>
		<tr>
			<td align="right" valign="top">Description: </td>
			<td><textarea id="description" rows="10" cols="40" name="description" class="register_text">{{ description }}</textarea></td>
		</tr>
	
  		<tr>
			<td></td>
			<td>
					<input type="submit" name="save" class="register_button" value="Save &rarr;">
					<a href="http://fblaconnection.com/panel/{{user.username}}/gallery/{{ugallery.id}}/edit/?ex=delete"><div id="reg_button_div">Delete</div></a>
			</td>
		</tr>
	</table>
</form>
{% endif %}
{% endblock %}